/**
 * 
 */
package info.pello.struts.tulebox.example;
import java.util.Random;

import com.opensymphony.xwork2.ActionSupport;
public class NamesAction extends ActionSupport{
	 private int silabes;
	private String mode;
	private Names name;
	public String result;
	public NamesAction(){
		
	}
	 public String execute() throws Exception {
		 	name=new Names(silabes,mode);	    	
	        return SUCCESS;
	    }
	public int getSilabes() {
		return silabes;
	}
	public void setSilabes(int silabes) {
		
		this.silabes = silabes;
	}
	public String getMode() {
		return mode;
	}
	public void setMode(String mode) {
		
		this.mode = mode;
	}
	public String getName() {
		 result= name.genName();
		return result;
	}
}